<?php /* Smarty version Smarty-3.1.11, created on 2013-08-26 08:09:14
         compiled from "..\templates\tuyensinh\xulydacbiet.tpl" */ ?>
<?php /*%%SmartyHeaderCode:32462521aa9a591d037-98471295%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '71b83865f13fcd6d998665ed2ac73fe307c63137' => 
    array (
      0 => '..\\templates\\tuyensinh\\xulydacbiet.tpl',
      1 => 1377479350,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '32462521aa9a591d037-98471295',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_521aa9a5bdbd19_18443986',
  'variables' => 
  array (
    'dssbd' => 0,
    'update' => 0,
    'thongbao' => 0,
    'khoiphuc' => 0,
    'dsnganhthi' => 0,
    'nganh' => 0,
    'loi' => 0,
    'bachoc' => 0,
    'bh' => 0,
    'dantoc' => 0,
    'dt' => 0,
    'tongiao' => 0,
    'tg' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_521aa9a5bdbd19_18443986')) {function content_521aa9a5bdbd19_18443986($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include 'C:\\xampp\\htdocs\\tuyensinh\\lib\\smarty\\plugins\\modifier.date_format.php';
?><script>
    function laythongtin_ts(){
        var url="index.php?muc=tuyensinh&modul=them_tuyensinh";
        if($("#sbd_ts").val()!=""){
            url=url+"&masv="+$("#sbd_ts").val();
            window.location.href=url;
        }else{
            alert("Hãy nhập số SBD trước")
        }
    }    
  $(function() {
    $( "#ngaysinh_sv" ).datepicker();
  });
  
  $(function() {
    var availableTags = [<?php echo $_smarty_tpl->tpl_vars['dssbd']->value;?>
 ];
    $( "#sbd_ts" ).autocomplete({
      source: availableTags
    });
  });
</script>
<div class="content-box"><!-- Start Content Box -->
	<div class="content-box-header">
		<h3>Đăng Ký Thông Tin Của Sinh Viên </h3>
	</div> <!-- End .content-box-header -->	
	<div class="content-box-content">
<!----------------------------------------------------------------- NỘI DUNG TRANG------------------------------------------------------------------------>
        			
        <form action="" method="POST" id="formnoidung" name="dulieu" enctype="multipart/form-data" onsubmit="return ktnhap_cb()">
        <table>
                <tr class="linebottom">
                    <td colspan="9">
                        <label>SBD của SV:</label>
                        <input class="medium-input" type="text"  id="sbd_ts" value=""/>
                        <input class="button" type="button" onclick="laythongtin_ts();" value="Kiểm tra"/>
                        <input type="hidden" name="update" value="<?php echo $_smarty_tpl->tpl_vars['update']->value;?>
" />
                        <?php echo $_smarty_tpl->tpl_vars['thongbao']->value;?>

                    </td>
                </tr>
                <tr>
                    <td colspan="7">
                        <label id="lbsbd">SBD:</label>
                        <input class="text-input" type="text" id="sbd" value="<?php echo $_smarty_tpl->tpl_vars['khoiphuc']->value['sbd'];?>
"  onblur="ktsbd(this.value)" disabled="true"/>
                        <input class="text-input" type="hidden"  name="sbd"  id="sbd_luu" value="<?php echo $_smarty_tpl->tpl_vars['khoiphuc']->value['sbd'];?>
" />
                        <input class="text-input" type="hidden" name="sbd_cu" value="<?php echo $_smarty_tpl->tpl_vars['khoiphuc']->value['sbd'];?>
"/>
                        
                        <label id="lbkhoi">Khối thi:</label>
                        <input class="small-input" type="text" id="khoithi" onblur="ktkhoi(this.value)" value="<?php echo $_smarty_tpl->tpl_vars['khoiphuc']->value['khoithi'];?>
" disabled="true"/>
                        <input type="hidden" name="khoithi"  id="khoithi_luu" value="<?php echo $_smarty_tpl->tpl_vars['khoiphuc']->value['khoithi'];?>
"/>
                       
                        <label id="lbnganhthi">Ngành thi:</label>
                        
                        <select id="nganhthi" onblur="ktnganhthi(this.value)" disabled="true">
                            <option value="">--Chọn ngành thi--</option>
                            <?php  $_smarty_tpl->tpl_vars['nganh'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['nganh']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['dsnganhthi']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['nganh']->key => $_smarty_tpl->tpl_vars['nganh']->value){
$_smarty_tpl->tpl_vars['nganh']->_loop = true;
?>
                                <option value="<?php echo $_smarty_tpl->tpl_vars['nganh']->value['ten_nganh'];?>
"  <?php if ($_smarty_tpl->tpl_vars['nganh']->value['ten_nganh']==$_smarty_tpl->tpl_vars['khoiphuc']->value['nganhthi_luu']||$_smarty_tpl->tpl_vars['nganh']->value['madm_nganh']==$_smarty_tpl->tpl_vars['khoiphuc']->value['nganhthi_luu']){?> selected=""<?php }?>><?php echo $_smarty_tpl->tpl_vars['nganh']->value['ten_nganh'];?>
</option>
                            <?php } ?>    
                        </select>
                          <input name="nganhthi_luu" id="nganhthi_luu" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['khoiphuc']->value['nganhthi_luu'];?>
" />
                          <input type="checkbox" id="mo" onclick="modulieu()" />
                  </td>
                </tr>
                <tr class="linebottom">
                  <td colspan="7">        
                        <label id="lbmon1">Môn 1:</label>
                        <input class="small-input" type="text" id="mon1" onblur="ktmon1(this.value)" value="<?php echo $_smarty_tpl->tpl_vars['khoiphuc']->value['mon1'];?>
" disabled="true"/>
                        <input type="hidden" name="mon1" id="mon1_luu" value="<?php echo $_smarty_tpl->tpl_vars['khoiphuc']->value['mon1'];?>
"/>
                        
                        <label id="lbmon2">Môn 2:</label>
                        <input class="small-input" type="text"  id="mon2" onblur="ktmon2(this.value)" value="<?php echo $_smarty_tpl->tpl_vars['khoiphuc']->value['mon2'];?>
" disabled="true"/>
                        <input type="hidden" name="mon2" id="mon2_luu" value="<?php echo $_smarty_tpl->tpl_vars['khoiphuc']->value['mon2'];?>
"/>
                        
                        <label id="lbmon3">Môn 3:</label>
                        <input class="small-input" type="text" id="mon3" onblur="ktmon3(this.value)" value="<?php echo $_smarty_tpl->tpl_vars['khoiphuc']->value['mon3'];?>
" disabled="true"/>
                        <input type="hidden" name="mon3" id="mon3_luu" value="<?php echo $_smarty_tpl->tpl_vars['khoiphuc']->value['mon3'];?>
"/>
                        
                        <label id="lbtongdiem">Tổng:</label>
                        <input class="small-input" type="text" id="tongdiem" onblur="kttongdiem(this.value);" value="<?php echo $_smarty_tpl->tpl_vars['khoiphuc']->value['tongdiem_tt'];?>
" disabled="true"/>
                        <input type="hidden" name="tongdiem_tt" id="tongdiem_luu" value="<?php echo $_smarty_tpl->tpl_vars['khoiphuc']->value['tongdiem_tt'];?>
"/>
                        
                        
                        
                  </td>
                </tr>
                <tr>
                    <td colspan="9">Thông báo:<label id="loi"><?php echo $_smarty_tpl->tpl_vars['loi']->value;?>
</label> </td>
                </tr>
                <tr>
                    <td ><label id="hoten">Họ và tên:</label> </td>
                    <td><input class="text-input" type="text" name="hoten_sv" id="hoten_sv"  onblur="Chuanhoa(this)" value="<?php echo $_smarty_tpl->tpl_vars['khoiphuc']->value['hoten_sv'];?>
"/></td>
                    <td ><label id="ngaysinh">Ngày sinh:</label></td>
                    <td ><input class="medium-input" type="text" name="ngaysinh_sv" id="ngaysinh_sv" autocomplete="off" onblur="ktngaysinh(this.value)" value="<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['khoiphuc']->value['ngaysinh_sv'],'%d/%m/%Y');?>
"/> </td>
                    <td ><label id="noisinh">Nơi sinh:</label></td>
                    <td><input class="text-input" type="text" name="noisinh_sv" id="noisinh_sv" value="<?php echo $_smarty_tpl->tpl_vars['khoiphuc']->value['noisinh_sv'];?>
"/></td>
                    <td ><label id="cmtnd"> CMTND:</label></td>
                    <td><input class="medium-input" type="text" name="cmtnd_sv" id="cmtnd_sv" onblur="ktcmtnd(this.value)" value="<?php echo $_smarty_tpl->tpl_vars['khoiphuc']->value['cmtnd_sv'];?>
"/> </td>
                    <td>Giới Tính:                    
                        <input type="radio" name="gt" value="Nam" <?php if ($_smarty_tpl->tpl_vars['khoiphuc']->value['gt']=='Nam'){?> checked="1"<?php }?> />Nam
                        <input type="radio" name="gt" value="Nữ" <?php if ($_smarty_tpl->tpl_vars['khoiphuc']->value['gt']=='Nữ'){?> checked="1"<?php }?>/>Nữ  
                    </td>
                </tr>
                <tr>
                    <td ><b>Bậc đã học:</b></td>
                     <td>
                        <select name="bachoc">
                            <?php  $_smarty_tpl->tpl_vars['bh'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['bh']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['bachoc']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['bh']->key => $_smarty_tpl->tpl_vars['bh']->value){
$_smarty_tpl->tpl_vars['bh']->_loop = true;
?>
                                <option value="<?php echo $_smarty_tpl->tpl_vars['bh']->value['ten_bh'];?>
"  <?php if ($_smarty_tpl->tpl_vars['bh']->value['ten_bh']==$_smarty_tpl->tpl_vars['khoiphuc']->value['bachoc']){?> selected=""<?php }?> ><?php echo $_smarty_tpl->tpl_vars['bh']->value['ten_bh'];?>
</option>
                            <?php } ?>    
                        </select>
                    </td>
                    <td ><label id="namtotnghiep"> Năm TN:</label></td>
                    <td><input class="medium-input" type="text" name="namtotnghiep_sv" id="namtotnghiep_sv" onblur="ktnamtn(this.value)" value="<?php echo $_smarty_tpl->tpl_vars['khoiphuc']->value['namtotnghiep_sv'];?>
"/> </td>
                    <td ><label id="noitotnghiep">Nơi TN:</label> </td>
                    <td><input class="text-input" type="text" name="noitotnghiep_sv" id="noitotnghiep_sv"  value="<?php echo $_smarty_tpl->tpl_vars['khoiphuc']->value['noitotnghiep_sv'];?>
"/> </td>
                    <td><label id="dantoc">Dân tộc:</label></td>
                    <td><select name="dantoc">
                            <?php  $_smarty_tpl->tpl_vars['dt'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['dt']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['dantoc']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['dt']->key => $_smarty_tpl->tpl_vars['dt']->value){
$_smarty_tpl->tpl_vars['dt']->_loop = true;
?>
                                <option value="<?php echo $_smarty_tpl->tpl_vars['dt']->value['ten_dantoc'];?>
" <?php if ($_smarty_tpl->tpl_vars['dt']->value['ten_dantoc']==$_smarty_tpl->tpl_vars['khoiphuc']->value['dantoc']){?> selected=""<?php }?> ><?php echo $_smarty_tpl->tpl_vars['dt']->value['ten_dantoc'];?>
</option>
                            <?php } ?>
                        </select>
                    </td>
                    <td>                 
                        <input type="radio" name="doanthe_sv" value="Đoàn viên" <?php if ($_smarty_tpl->tpl_vars['khoiphuc']->value['doanthe_sv']=='Đoàn viên'){?> checked="1"<?php }?>  />Đoàn
                        <input type="radio" name="doanthe_sv" value="Đảng viên" <?php if ($_smarty_tpl->tpl_vars['khoiphuc']->value['doanthe_sv']=='Đảng viên'){?> checked="1"<?php }?> />Đảng
                        <input type="radio" name="doanthe_sv" value="Chưa" <?php if ($_smarty_tpl->tpl_vars['khoiphuc']->value['doanthe_sv']=='Chưa'){?> checked="1"<?php }?> />Chưa
                    </td>
               </tr>
               <tr>
                    <td><label id="email">Email:</label></td>
                    <td><input class="text-input" type="text" name="email_sv" id="email_sv" onblur="ktemail(this.value)" value="<?php echo $_smarty_tpl->tpl_vars['khoiphuc']->value['email_sv'];?>
"/> </td>
                    <td><label id="sdt">SĐT:</label></td>
                    <td><input class="medium-input" type="text" name="sdt_sv" id="sdt_sv" onblur="ktsdt(this.value)" value="<?php echo $_smarty_tpl->tpl_vars['khoiphuc']->value['sdt_sv'];?>
"/> </td>
                    <td colspan="2">
                        <b>Đối tượng:</b><input name="doituong_tt" class="small-input" type="text" value="<?php echo $_smarty_tpl->tpl_vars['khoiphuc']->value['doituong_tt'];?>
"/>
                        <b>Khu vực:</b><input name="khuvuc_tt" class="small-input" type="text" value="<?php echo $_smarty_tpl->tpl_vars['khoiphuc']->value['khuvuc_tt'];?>
"/>
                    </td>
                    <td colspan="2"><label id="tongiao">Tôn Giáo:</label>
                        <select name="tongiao">
                            <?php  $_smarty_tpl->tpl_vars['tg'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['tg']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['tongiao']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['tg']->key => $_smarty_tpl->tpl_vars['tg']->value){
$_smarty_tpl->tpl_vars['tg']->_loop = true;
?>
                                 <option value="<?php echo $_smarty_tpl->tpl_vars['tg']->value['ten_tg'];?>
" <?php if ($_smarty_tpl->tpl_vars['tg']->value['ten_tg']==$_smarty_tpl->tpl_vars['khoiphuc']->value['tongiao']){?> selected=""<?php }?> ><?php echo $_smarty_tpl->tpl_vars['tg']->value['ten_tg'];?>
</option>
                            <?php } ?>
                        </select>
                    </td>
                    <td >
                        <label>Chức vụ PT:</label>
                        <input class="medium-input" type="text" name="chucvupt_tt" value="<?php echo $_smarty_tpl->tpl_vars['khoiphuc']->value['chucvupt_tt'];?>
"/>
                    </td>   
               </tr>
               <tr>
                    <td colspan="9" >
                        <label id="hokhau">Hộ khẩu:</label>
                        <input class="text-input td-200" type="text" name="hokhau_sv" id="hokhau_sv" value="<?php echo $_smarty_tpl->tpl_vars['khoiphuc']->value['hokhau_sv'];?>
" onblur="kthokhau(this.value);" />
                        <label id="diachi">Địa chỉ:</label>
                        <input class="text-input td-180" type="text" name="diachi_sv" id="diachi_sv" value="<?php echo $_smarty_tpl->tpl_vars['khoiphuc']->value['diachi_sv'];?>
" />
                        <label id="quequan">Quê quán:</label>
                        <input class="text-input td-160" type="text" name="quequan_sv" id="quequan_sv" value="<?php echo $_smarty_tpl->tpl_vars['khoiphuc']->value['quequan_sv'];?>
"/>
                        <label id="nangkhieu">Năng Khiếu:</label>
                        <input class="text-input td-140" type="text" name="nangkhieu"  value="<?php echo $_smarty_tpl->tpl_vars['khoiphuc']->value['nangkhieu'];?>
"/> 
                    </td>
               </tr>    
        </table>
        <table>
                <tr class="linebottom" >
                    <td>
                         Chọn Ảnh: <input type="file" name="image"/>
                    </td>
                    <td>
                        <b>Địa điểm:</b><select disabled="true"><option>Viện ĐH Mở Hà Nội</option></select> 
                        <b>Hệ đào tạo:</b><select disabled="true"><option>Chính quy</option></select>
                        <b>Trình độ:</b><select disabled="true"><option>Đại học</option></select>
                    </td>
                </tr>
            </table>
             <table>
                <tr >
                    <td colspan="5">
                        <b>Thông tin quan hệ gia đình</b>
                    </td>
                </tr>
                <tr>                    
                    <td>Tên quan hệ</td>
                    <td>Họ và tên</td>
                    <td>Năm sinh</td>
                    <td>Nghề nghiệp</td>
                    <td>Số điện thoại</td>                    
                <tr>
                
                <tr>
                    <td><select name="quanhe0"><option>__Bố__</option></select>
                    </td>
                    <td><input class="text-input" type="text" name="hoten0" onblur="Chuanhoa(this)" value='<?php echo $_smarty_tpl->tpl_vars['khoiphuc']->value["hoten0"];?>
'/></td>
                    <td><input class="text-input td-150" type="text" name="ngaysinh0" id="ngaysinh0" value='<?php echo $_smarty_tpl->tpl_vars['khoiphuc']->value["ngaysinh0"];?>
'/></td>
                    <td><input class="text-input td-250" type="text" name="nghenghiep0" value='<?php echo $_smarty_tpl->tpl_vars['khoiphuc']->value["nghenghiep0"];?>
'/></td>
                    <td><input class="text-input td-240" type="text" name="quequan0" value='<?php echo $_smarty_tpl->tpl_vars['khoiphuc']->value["quequan0"];?>
'/></td>
                </tr>
                <tr>
                    <td><select name="quanhe1"><option>__Mẹ__</option></select>
                    </td>
                    <td><input class="text-input" type="text" name="hoten1" onblur="Chuanhoa(this)" value='<?php echo $_smarty_tpl->tpl_vars['khoiphuc']->value["hoten1"];?>
'/></td>
                    <td><input class="text-input td-150" type="text" name="ngaysinh1" id="ngaysinh0" value='<?php echo $_smarty_tpl->tpl_vars['khoiphuc']->value["ngaysinh1"];?>
'/></td>
                    <td><input class="text-input td-250" type="text" name="nghenghiep1" value='<?php echo $_smarty_tpl->tpl_vars['khoiphuc']->value["nghenghiep1"];?>
'/></td>
                    <td><input class="text-input td-240" type="text" name="quequan1" value='<?php echo $_smarty_tpl->tpl_vars['khoiphuc']->value["quequan1"];?>
'/></td>
                </tr>
                <tr><td><br /></td></tr>
                <tr>
                        <td colspan="5">
                            <input class="button" type="submit" name="themmoi"  value="Lưu hồ sơ"/>
                            <input class="button" type="reset" name="reset" id="reset" value="Nhập Lại" />                                                                                                                        
                        </td>
                </tr>
            </table>            
        </form>
                   
<!-----------------------------------------------------------KẾT THÚC NỘI DUNG TRANG------------------------------------------------------------------------>
</div> <!-- End .content-box-content -->
</div> <!-- End .content-box --><?php }} ?>